package routes

import (
	"note-go/apis"
	"note-go/pages"
	"note-go/ws"

	"github.com/gin-gonic/gin"
)

func RegisterUserRoutes(r *gin.Engine) {

	r.GET("/ws", ws.WebsocketHandler)
	r.GET("/login", pages.Login)
	r.HEAD("/login", pages.Login)
	r.GET("/register", pages.Register)
	r.HEAD("/register", pages.Register)
	r.GET("/about", pages.About)
	r.HEAD("/about", pages.About)

	r.POST("/api/account/login", apis.AccountLogin)
	r.GET("/account/logout", apis.AccountLogout)
}
